package com.shop.cereshop.agent.service.product;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.cereshop.agent.page.product.ProductDetailVO;
import com.shop.cereshop.agent.param.product.ProductListDTO;
import com.shop.cereshop.commons.domain.agentProduct.CereAgentProduct;
import com.shop.cereshop.commons.domain.agentSearch.CereAgentSearchHistory;
import com.shop.cereshop.commons.domain.common.Page;
import com.shop.cereshop.commons.domain.common.PageParam;
import com.shop.cereshop.agent.page.product.ProductVO;
import com.shop.cereshop.agent.param.product.ProductDTO;
import com.shop.cereshop.agent.param.search.SearchDTO;
import com.shop.cereshop.commons.domain.order.CereAgentOrderProduct;

import java.util.List;

public interface ProductService extends IService<CereAgentProduct> {

    Page<CereAgentSearchHistory> getSearchHistoryList(SearchDTO searchDTO);

    boolean deleteSearchHistory(SearchDTO searchDTO);

    ProductDetailVO getProductDetail(Long productId, Long agentUserId);

    List<ProductVO> getProducts(ProductListDTO param);
}
